import { defineStore } from 'pinia';

export interface Prompt {
  id: string;
  name: string;
  content: string;
  description: string;
  category: string;
  status: 'active' | 'inactive';
}

export const usePromptsStore = defineStore('prompts', {
  state: () => ({
    prompts: [] as Prompt[],
  }),
  
  actions: {
    async fetchPrompts(): Promise<Prompt[]> {
      // TODO: 实现从后端获取提示词列表的逻辑
      return [];
    },
    
    async createPrompt(prompt: Omit<Prompt, 'id'>): Promise<Prompt> {
      // TODO: 实现创建提示词的逻辑
      return { ...prompt, id: Date.now().toString() };
    },
    
    async updatePrompt(prompt: Prompt): Promise<Prompt> {
      // TODO: 实现更新提示词的逻辑
      return prompt;
    },
    
    async deletePrompt(id: string): Promise<void> {
      // TODO: 实现删除提示词的逻辑
    }
  }
}); 